#include "MainWindow.h"

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){
	m_mainWidget = new QWidget(this);
	setCentralWidget(m_mainWidget);

	m_layout = new QVBoxLayout(m_mainWidget);
	m_mainWidget->setLayout(m_layout);

	m_playerControl = new PlayerControl(m_mainWidget);
	m_layout->addWidget(m_playerControl);

	m_bottomWidget = new QWidget(m_mainWidget);
	m_layout->addWidget(m_bottomWidget);

	m_bottomWidgetLayout = new QHBoxLayout(m_bottomWidget);
	m_bottomWidget->setLayout(m_bottomWidgetLayout);

	m_fileSystemView = new FileSystemView(m_bottomWidget);
	m_bottomWidgetLayout->addWidget(m_fileSystemView);

	m_playlistVisualList = new PlaylistVisualList(m_bottomWidget);
	m_bottomWidgetLayout->addWidget(m_playlistVisualList);
}
